﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibraryLab3
{
    public class Screws : Screw
    {
        private string _name;
        private string _capacity;
        private decimal _slow;
        private decimal _structure;
        private decimal _size;

        public Screws() : this(null) { }
        public Screws(string _name) : this(_name, 0) { }
        public Screws(string _name, decimal _structure) : this(_name, _structure, 0) { }
        public Screws(string _name, decimal _structure, decimal _size) : this(_name, _structure, _size, null) { }
        public Screws(string _name, decimal _structure, decimal _size, string _capacity) : this(_name, _structure, _size, _capacity, 0) { }
        public Screws(string _name, decimal _structure, decimal _size, string _capacity, decimal _slow) 
        {
            this._name = _name;
            this._structure = _structure;
            this._size = _size;
            this._capacity = _capacity;
            this._slow = _slow;
        }

        public override string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public override decimal Structure
        {
            get { return _structure; }
            set { _structure = value; }
        }

        public override decimal Size
        {
            get { return _size; }
            set { _size = value; }
        }
        public override string Capacity
        {
            get { return _capacity; }
            set { _capacity = value; }
        }
        public override decimal Slow
        {
            get { return _slow; }
            set { _slow = value; }
        }

    }
}
